import useMyContext from "@/hooks/useContext";
import { useMemo } from "react";

const useColor = () => {
  const { darkMode } = useMyContext();
  let color = useMemo(
    () => (darkMode ? "#fff" : `var("primaryColor")`),
    [darkMode]
  );
  return color;
};

export default useColor;
